package com.bookstore.bean;

/***
 * User用户实体类
 * int userId;用户ID
 * String userName;用户名、昵称
 * String portraitPath 用户头像的存储路径
 * String password; 用户的密码
 * String telephone;用户的电话号码
 * String email;用户的邮箱
 */
public class User {
    private Integer userId;
    private  String userName;
    private  String portrait_path;
    private  String password;
    private  String telephone;
    private  String email;

    public User() {
    }

    public User(Integer userId, String userName, String portrait_path, String password, String telephone, String email) {
        this.userId = userId;
        this.userName = userName;
        this.portrait_path = portrait_path;
        this.password = password;
        this.telephone = telephone;
        this.email = email;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPortrait_path() {
        return portrait_path;
    }

    public void setPortrait_path(String portrait_path) {
        this.portrait_path = portrait_path;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", portrait_path='" + portrait_path + '\'' +
                ", password='" + password + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
